<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<t:wrapper>
	<jsp:attribute name="title">
		<spring:message code="course.assignment.upload.title"/>
	</jsp:attribute>
	<jsp:body>
		<c:if test="${didFileUpload}">
			<p><spring:message code="course.assignment.upload.success"/>
		</c:if>
		
		<form:form modelAttribute="assignmentFileItem" method="post" enctype="multipart/form-data">
			<div>
				<form:label for="name" path="name">
					<spring:message code="course.assignment.upload.name"/>
				</form:label>
				<form:input type="text" path="name"/>
			</div>
			<div>
				<form:label for="file" path="file">
					<spring:message code="course.assignment.upload.file"/>
				</form:label>
				<form:input type="file" path="file"/>
			</div>
			<button type="submit"><spring:message code="course.assignment.upload.button"/></button>
		</form:form>
	</jsp:body> 
</t:wrapper>